package com.bjpowernode.shop.Feign;


import com.bjpowernode.shop.domain.Basket;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("cart-service")
public interface CartServiceFeign {
    @GetMapping("/p/shopCart/getBasketListByIds")
    List<Basket> getBasketListByIds(@RequestParam("basketIds")List<Long> basketIds);

    @DeleteMapping("/p/shopCart/clearCartList")
    void clearCartList(@RequestParam("stringUserId") String stringUserId, @RequestParam("skuIdList") List<Long> skuIdList);
}
